package com.arpa.wms.handler;

import cn.hutool.json.JSONUtil;
import com.arpa.wms.domain.dto.AuthDto;
import com.arpa.wms.domain.entity.Shop;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

import static com.arpa.wms.handler.AbstractTokenManagerHandler.DYXD_TOKEN_MANAGER;


/**
 * 抖音token处理
 *
 * @author lxl
 * @since 2021-09-16
 */
@Log4j2
@Component(DYXD_TOKEN_MANAGER)
class DyxdTokenHandler extends DyTokenBasicHandler {
    @Override
    public void refreshToken(Shop shop) {
        log.info("抖音小店token刷新处理。{}",JSONUtil.toJsonStr(shop));
        super.refreshToken(shop);
    }

    /**
     * 获取token
     *
     * @param dto
     * @author liuxr
     * @date 2021/10/25 17:19
     */
    @Override
    public void getToken(AuthDto dto) {
        super.getToken(dto);
    }
}


